import instance from '@/utils/request';

export function getequipmentledgerapi(data) {
  return instance.request({
    url: "api/AssetManage/GetEquipmentLedger",
    method: "post",
    data
  })
}

export function getequipmentledgerinfoapi(id) {
  return instance.request({
    url: "api/AssetManage/GetEquipmentLedgerInfo?id=" + id,
    method: "post",
    id
  })
}

export function putequipmentledgerstartapi(data) {
  return instance.request({
    url: "api/AssetManage/PutUpdateEquipmentLedger",
    method: "put",
    data
  })
}
export function GetShowEquipmentLedger(data) {
  return instance.request({
    url: "api/EquipmentLedger/GetEquipmentLedger",
    method: "post",
    data
  })
}

export function GetTotaocount() {
  return instance.request({
    url: "/api/EquipmentLedger/GetCount",
    method: "get",
  })
}

export function addEquipmentLedger(data) {
  return instance.request({
    url: "/api/EquipmentLedger/PostAddEquipmentLedger",
    method: "post",
    data
  })
}

export function updEquipmentLedger(data) {
  return instance.request({
    url: "/api/EquipmentLedger/PutUpdateEquipmentLedger",
    method: "put",
    data
  })
}

export function deleteEquipmentLedger(data) {
  return instance.request({
    url: "/api/EquipmentLedger/DeleteEquipmentLedger",
    method: "delete",
    data
  })
}
